//---------------------------------------------------------------------------

#include "stdafx.h"

#include "FMainWnd.h"
#include "MessageBoxHook.h"


//---------------------------------------------------------------------------

#pragma package(smart_init)






//
//LRESULT CALLBACK HookProcMB(int nCode, WPARAM wParam, LPARAM lParam)
//{
//   TRect that;
//
//   if (nCode == HCBT_ACTIVATE)
//   {
//      GetWindowRect(wParam, this);
//      GetWindowRect(form1.handle, that);
//      x := (that.Left + (that.Right  - that.Left) div 2) - ((this.Right  - this.Left) div 2);
//      y := (that.Top  + (that.Bottom - that.Top)  div 2) - ((this.Bottom - this.Top)  div 2);
//      SetWindowPos(wParam, 0, x, y, 0, 0, SWP_NOSIZE+SWP_NOZORDER+SWP_NOACTIVATE);
//   }
//
//   return CallNextHookEx(hook, code, wParam, lParam);
//
//}
//
//bool InstallMB_Hook()
//{
//   SetWindowsHookEx(WH_CBT, @HookProc, hInstance, GetCurrentThreadID);
//
//}
//bool ReleaseMB_Hook()
//{
//
//}
